﻿@using MrCMS.Helpers
@model System.Collections.Generic.List<MrCMS.HealthChecks.IHealthCheck>
<h4>@Resource("Admin Health Checks Title", "Health checks")</h4>
<table class="table table-striped table-condensed" style="overflow: scroll" data-health-check-list="true">
    <thead>
        <tr>
            <th>@Resource("Status")</th>
            <th>@Resource("Description")</th>
            <th>@Resource("Messages")</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var healthCheck in Model)
        {
            <tr data-process-url="@Url.Action("Process", "HealthCheck", new { typeName = healthCheck.TypeName })">
                <td data-status="true" class="text-center"><i class="glyphicon glyphicon-refresh"></i></td>
                <td>@healthCheck.DisplayName</td>
                <td data-messages="true">
                <td>
            </tr>
        }
    </tbody>
</table>
@{ Html.IncludeScript("~/Areas/Admin/Content/Scripts/mrcms/health-checks.js");}